-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: optimization technique related validations. #4921
base: master
Are you sure you want to change the base?
Conversation
…ModelBuilder and add validations to block compilation jobs using TRTLLM an Llama-3.1.
…with gated draft model is selected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not clear to me how users can provide a JS model as a draft model in ModelBuilder.optimize
. Can you please provide an example and what happens in the case of a gated draft model ?
return additional_model_data_source.get("S3DataSource").get("S3Uri", None) | ||
|
||
|
||
def _extract_deployment_config_additional_model_data_source_s3_uri( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate of _extract_additional_model_data_source_s3_uri
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deployment config uses Pascal case while the PySDK model will use snake case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack.
ToDo: We need to find a different way of closing these differences.
|
||
if not accept_eula: | ||
raise ValueError( | ||
"Gated draft model requires accepting end-user license agreement (EULA)." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a note on how the user can do this. Eg: Set parameter
to true
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can re-use messaging from jumpstart.factory.model
Consider re-using that through a helper function.
…ployment_config flow validation in optimize_utils in favor of the one directly on jumpstart/factory/model.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 recent commits look good ! I would like to see more tests once the local issues are fixed.
What is the behavior when a customer provides a |
… to differentiate SageMaker/JumpStart draft models.
Commit d10c475 introduces a ValueError when a proprietary SM draft model can't be found, and recommends the customer to try using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add unit test coverage for jumpstart
construct changes in the PySDK.
9148e70
Description of changes:
Testing done:
Merge Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.General
Tests
unique_name_from_base
to create resource names in integ tests (if appropriate)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.